package com.example.contactlist;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class KanaActivity extends Activity {
	private Intent i = null;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_kana);
		
		i = this.getIntent();
		
		String kana = i.getStringExtra("param");
		
		EditText editText = (EditText)findViewById(R.id.editText1);
		editText.setText(kana);
	}
	
	public void kana_onClick(View view) {
		
		EditText txtName = (EditText)findViewById(R.id.editText1);
		
		i = new Intent();
		i.putExtra("param", txtName.getText().toString());
		
		setResult(RESULT_OK, i);
		
		finish();
	}
}
